package com.ssm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssm.dao.UserMapper;
import com.ssm.pojo.User;

@Service
public class UserService {

	@Autowired
	private UserMapper userMapper;
	
	
	public List<User> selectUserAndOrders(){
		
		return userMapper.selectUserAndOrders();
	}
	
     public List<User> getUsersByTiaojian(User user){
		
		return userMapper.getUsersByTiaojian(user);
	}
	
	
	
}
